package com.app.modules.code.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Arrays;

@ApiModel(value="自动生成代码对象", description="自动生成代码信息")
public class CodeconfigVo implements Serializable{

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "包名")
    private String packagename;

    @ApiModelProperty(value = "表前缀")
    private String tableprefix;

    @ApiModelProperty(value = "数据源ID")
    private Integer dbid;

    @ApiModelProperty(value = "表名称")
    private String[] dbtables;

    @ApiModelProperty(value = "是否开启swagger")
    private boolean isSwagger2;

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPackagename() {
        return packagename;
    }

    public void setPackagename(String packagename) {
        this.packagename = packagename;
    }

    public String getTableprefix() {
        return tableprefix;
    }

    public void setTableprefix(String tableprefix) {
        this.tableprefix = tableprefix;
    }

    public Integer getDbid() {
        return dbid;
    }

    public void setDbid(Integer dbid) {
        this.dbid = dbid;
    }

    public String[] getDbtables() {
        return dbtables;
    }

    public void setDbtables(String[] dbtables) {
        this.dbtables = dbtables;
    }

    public boolean isSwagger2() {
        return isSwagger2;
    }

    public void setSwagger2(boolean swagger2) {
        isSwagger2 = swagger2;
    }

    @Override
    public String toString() {
        return "CodeconfigVo{" +
                "author='" + author + '\'' +
                ", packagename='" + packagename + '\'' +
                ", tableprefix='" + tableprefix + '\'' +
                ", dbid=" + dbid +
                ", dbtables=" + Arrays.toString(dbtables) +
                ", isSwagger2=" + isSwagger2 +
                '}';
    }
}
